<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property bool $anonymous 匿名:0=否,1=是
 * @property int $goods_id 商品
 * @property int $id
 * @property int $orders_id 订单
 * @property int $score 评分（最大5分）
 * @property int $user_id 用户
 * @property string $content 内容
 * @property string $createtime
 * @property string $images 图片
 * @property string $sku_json 规格
 * @property-read \app\model\GoodsOrders $orders
 * @property-read \app\model\User $user
 * @mixin \think\Model
 */
class GoodsOrdersAssess extends Model
{
    //
	protected $createTime = 'createtime';
	
	function orders()
	{
		return $this->belongsTo(GoodsOrders::class,'orders_id');
	}
	
	function user()
	{
		return $this->belongsTo(User::class,'user_id');
	}
	
	
}
